<!--查看本地下载文件 -->
<template>
  <div>
    <Modal v-model="show"  :mask-closable="false" :footer-hide=true width="1080" :closable="false">
      <video ref="filePlayer"  autoplay style="width: 100%;height: 100%;background-color: #0c0c0c"> </video>
      <Row>
        <Col span="24">
          <div style="display: flex;justify-content: center">
            <Button type="primary" @click="close">{{$t('close')}}</Button>
          </div>
        </Col>
      </Row>
    </Modal>

  </div>
</template>
<script>
export default {
  data(){
    return{
      show:false
    }
  },
  methods:{
    openDialog(file){
      //console.log("file:%o",file)
      const url = URL.createObjectURL(file);
      //console.log("url:%o",url)
      this.$refs.filePlayer.src=url;
      this.show=true;
    },
    close(){
      this.$refs.filePlayer.stop;
      this.$refs.filePlayer.srcObject = null;
      this.show=false;
    }
  }
}
</script>
<style>

</style>
